package com.crawler.dto;

import java.util.ArrayList;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

public class Parameter {
    private String randCode;
    private String sessionKey;
    private String token;
    private String depCityCode;
    private String departDate;
    private String dstCityCode;
    private String page;
    private String returnDate;
    private String sort = "0";
    private tripType tripType;
    private Exception exc;;
    private List<JSONObject> resultS;

    public Parameter() {
        super();
        resultS = new ArrayList<JSONObject>();
    }

    public String getRandCode() {
        return randCode;
    }

    public void setRandCode(String randCode) {
        this.randCode = randCode;
    }

    public Exception getExc() {
        return exc;
    }

    public void setExc(Exception exc) {
        this.exc = exc;
    }

    public String getSessionKey() {
        return sessionKey;
    }

    public void setSessionKey(String sessionKey) {
        this.sessionKey = sessionKey;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getDepCityCode() {
        return depCityCode;
    }

    public void setDepCityCode(String depCityCode) {
        this.depCityCode = depCityCode;
    }

    public String getDepartDate() {
        return departDate;
    }

    public void setDepartDate(String departDate) {
        this.departDate = departDate;
    }

    public String getDstCityCode() {
        return dstCityCode;
    }

    public void setDstCityCode(String dstCityCode) {
        this.dstCityCode = dstCityCode;
    }

    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page;
    }

    public String getReturnDate() {
        return returnDate;
    }

    public void setReturnDate(String returnDate) {
        this.returnDate = returnDate;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public tripType getTripType() {
        return tripType;
    }

    public void setTripType(tripType tripType) {
        this.tripType = tripType;
    }

    public List<JSONObject> getResultS() {
        return resultS;
    }

    public void setResultS(List<JSONObject> resultS) {
        this.resultS = resultS;
    }

    public void setResultS(JSONObject resultS) {
        this.resultS.add(resultS);
    }

    @Override
    public String toString() {
        return "Parameter [randCode=" + randCode + ", sessionKey=" + sessionKey + ", token=" + token + ", depCityCode="
                + depCityCode + ", departDate=" + departDate + ", dstCityCode=" + dstCityCode + ", page=" + page
                + ", returnDate=" + returnDate + ", sort=" + sort + ", tripType=" + tripType + ", exc=" + exc
                + ", resultS=" + resultS + "]";
    }
    
    

}
